import 'package:flutter/material.dart';

class MyInfo extends StatelessWidget {
  const MyInfo({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return AspectRatio(
      aspectRatio: 1.23,
      child: Container(
        color: Color(0xFF242430),
        child: Column(
          children: [
            Spacer(flex: 2),
            CircleAvatar(
              radius: 50,
              backgroundImage: NetworkImage(
                  'https://avatars.githubusercontent.com/u/10356687?s=400&u=9a561379a3b6eaca20ec6114d58b0de2318f84a6&v=4'),
            ),
            Spacer(),
            Text('Jack', style: Theme.of(context).textTheme.subtitle2),
            Text(
              '几处早莺争暖树,\n谁家新燕啄春泥.',
              textAlign: TextAlign.center,
              style: TextStyle(fontWeight: FontWeight.w200, height: 1.5),
            ),
            Spacer(flex: 2),
          ],
        ),
      ),
    );
  }
}
